package com.cyj.springbootservice.controller.oss;


import com.cyj.springbootservice.utils.AliyunOssUploadUtil;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

/**
 * @description:
 * @Author C_Y_J
 * @create 2022/5/20 11:01
 **/
@RestController
@RequestMapping("/oss-upload")
public class OssUploadController {

    @PostMapping("/one/_upload")
    public void uploadOne(@RequestParam("file") MultipartFile file) {
        AliyunOssUploadUtil.fileUploadOne(file);
    }

    @PostMapping("/two/_upload")
    public void uploadTwo() {

    }

    @PostMapping("/three/_upload")
    public void uploadThree(@RequestParam("file") MultipartFile file) {
        AliyunOssUploadUtil.fileUploadTwo(file);
    }
}
